import request from '@/utils/request'


// 查询列表
export function listDrainageRecord(query) {
  return request({
    url: '/sjgtw-emergency/drainageRecord/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getDrainageRecord(id) {
  return request({
    url: '/sjgtw-emergency/drainageRecord/' + id,
    method: 'get'
  })
}

// 新增
export function addDrainageRecord(data) {
  return request({
    url: '/sjgtw-emergency/drainageRecord',
    method: 'post',
    data: data
  })
}

// 修改
export function updateDrainageRecord(data) {
  return request({
    url: '/sjgtw-emergency/drainageRecord',
    method: 'put',
    data: data
  })
}

// 删除
export function delDrainageRecord(id) {
  return request({
    url: '/sjgtw-emergency/drainageRecord/' + id,
    method: 'delete'
  })
}

// 左右侧
export function geteLeftRightType() {
  return request({
      url: "/sjgtw-system/dict/data/type/eg_left_right",
      method: 'get'
  })
}